package com.qinge.blog.utils;

import org.springframework.context.annotation.Bean;
import org.springframework.stereotype.Component;
import java.util.UUID;

/**
 * @author QDW
 * @date 2022/5/4 19:09
 * @description UUID生成类
 **/
public class UUIDUtil {
    /**
     * 生成32位的随机UUID
     * @return 字符形式的小写UUID
     */
    public static  String getUUID32() {
        return UUID.randomUUID().toString()
                .replace("-", "").toLowerCase();
    }
}
